package com.eascs.archive.service;

import java.util.List;

import com.eascs.admin.common.vo.ModelResult;
import com.eascs.app.dao.PageResult;
import com.eascs.archive.entity.ArchiveBorrowEntity;
import com.eascs.archive.entity.ArchiveRecordEntity;

public interface ArchiveBorrowService {

	public ModelResult<PageResult<Object[]>> queryListPage(ArchiveBorrowEntity entity, int pageSize, int pageIndex);

	public Integer saveArchiveBorrowRecord(ArchiveBorrowEntity entity);
	
	public ArchiveBorrowEntity queryArchiveBorrowById(String bid);
	
	public int deleteArchiveBorrowById(String bid);
	
	public List<ArchiveBorrowEntity> queryAllListByloanapplyNo(String loanapplyNo);
	
	public int updateArchiveBorrow(ArchiveBorrowEntity entity);
	
	public int saveSendBorrowInfo(ArchiveBorrowEntity entity);
	
	public int updateArchiveBorrowRecordById(ArchiveBorrowEntity entity);
	
	public int updateBorrowState(String bid,String wfstate);
	
	public ArchiveRecordEntity queryArchiveExist(String loanapplyno);
}
